<?xml version="1.0" encoding="UTF-8" ?>
<f:view xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">
	<!-- ADICIONAR GRID 500PX, COM 20 PARTES DE 25PX -->
	<p:dialog widgetVar="promptAlterarSenha" modal="true" width="500"
		closable="false" header="Alterar Senha" minWidth="500"
		resizable="false">
		<h:form id="formPromptAlterarSenha" prependId="false">
			<div style="float: left; width: 200px;margin-top: 5px;">
				<h:outputLabel value="Senha Atual: " />
			</div>
			<div style="float: left; width: 260px;">
	    		<p:password feedback="false" value="#{alunoBean.senhaAtual}" style="width: 210px;"/>
	    	</div>
	    	<div style="float: left; width: 200px;margin-top: 5px;">
	    	 	<h:outputLabel value="Nova Senha: " />
	    	</div>
	    	<div style="float: left; width: 260px;">
	    		<p:password feedback="false" value="#{alunoBean.senhaNova}" style="width: 210px;"/>
	    	</div>
	    	<div style="float: left; width: 200px;margin-top: 5px;">
	    	 	<h:outputLabel value="Senha Nova Confirm: " />
	    	</div>
	    	<div style="float: left; width: 260px;">
	    		<p:password feedback="false" value="#{alunoBean.senhaNovaConfirm}" style="width: 210px;"/>
			</div>
			<div style="float: left; width: 460px;text-align: right;">
           		<br/><p:separator /><br/>  
                <p:commandButton action="#{alunoBean.alterarSenha}" value="Salvar" update="formPrincipal, formPromptAlterarSenha" oncomplete="promptAlterarSenha.hide()"/>
                <p:commandButton value="Cancelar" onclick="promptAlterarSenha.hide()" oncomplete="promptAlterarSenha.hide()"/>
            </div>
		</h:form>
	</p:dialog>
</f:view>